473,432 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,432 software developers and data experts.

Copying Web Page Content - Disable

When browsing a web page a user has the ability to highlight content on
a page (by holding down the left mouse button and dragging the mouse
over the desired content). Is there a way to disable this option? I
assume there isn't but I have to try.

Jul 23 '05 #1
22 6920
Matt wrote:
When browsing a web page a user has the ability to highlight content on a page (by holding down the left mouse button and dragging the mouse
over the desired content). Is there a way to disable this option? I
assume there isn't but I have to try.


That sounds ominous. Anyway...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript">

if ('undefined' != typeof document.onselectstart)
{
document.onselectstart = function()
{
return false;
}
}
else
{
document.onmousedown = function()
{
return false;
}
document.onmouseup = function()
{
return true;
}
}

</script>
</head>
<body>
<p>
When browsing a web page a user has the ability to highlight content on

a page (by holding down the left mouse button and dragging the mouse
over the desired content). Is there a way to disable this option? I
assume there isn't but I have to try.
</p>
</body>
</html>

Yet another chapter in the endless war against the user.

Jul 23 '05 #2
Matt wrote:
When browsing a web page a user has the ability to highlight content on
a page (by holding down the left mouse button and dragging the mouse
over the desired content). Is there a way to disable this option?
No, but some people may lead you to believe otherwise. They may also
lead you to believe you can disable the mouse buttons but you can't do
that either.
I assume there isn't but I have to try.


Your assumption is correct.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #3
Matt wrote:
When browsing a web page a user has the ability to
highlight content on a page (by holding down the left
mouse button and dragging the mouse over the desired
content). Is there a way to disable this option? I
assume there isn't but I have to try.


Broadly no there is not. IE provides an - onselectstart - event that may
be cancelled, and any browser exposing the selection itself to scripts
should allow that selection to be cleared. Both approached are dependent
on client-side scripting and can be disabled, either individually or by
disabling scripting on the browser. Neither will do anything to prevent
the copying of page content, because there are so many other ways of
doing that anyway, drag selection is just the immediate and obvious
approach.

Cancelling/clearing selections can be useful for other reasons, such as
avoiding undesirable visual artefacts while, for example, animating the
mouse dragging of an arbitrary absolutely positioned page element as
part of GUI.

Richard.
Jul 23 '05 #4
In article <11**********************@o13g2000cwo.googlegroups .com>,
ma***********@manning-napier.com enlightened us with...
When browsing a web page a user has the ability to highlight content on
a page (by holding down the left mouse button and dragging the mouse
over the desired content). Is there a way to disable this option?


With javascript, kinda sorta, as others have posted.
But bear in mind that for some of us, disabling script takes one click. For
others, two or three. ;)

--
--
~kaeli~
Acupuncture is a jab well done.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #5
In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar object)
which is not able to be copied the same was as text. Try to drag and
copy a flash object or a pdf to see what I mean.

But why do you want to prevent people from copying your text?

http://www.askblax.com

Jul 23 '05 #6
askMe wrote:
In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar object)
which is not able to be copied the same was as text.
That doesn't work either. If you want to prevent people from copying
content, don't put it on the web.
Try to drag and copy a flash object or a pdf to see what I mean.
File>Save As. Hmmmmm

But why do you want to prevent people from copying your text?
Lack of knowledge of the web, and how it works is the #1 answer to that
question, even if people fail to realize it.
http://www.askblax.com


Site not responding.

But, if your responses in Usenet are indicative of the responses on that
site, its better *not* to ask blax.

Read this groups FAQ before posting, it contains a ton of useful
information.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #7
"askMe" <as***@askblax.com> writes:
In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar object)
which is not able to be copied the same was as text. Try to drag and
copy a flash object or a pdf to see what I mean.
Well, you can select text in a pdf :)

Anyway, if people can see the content, they can also copy it, if not in
any other way, then by rewriting it letter by letter (and screen-capturing
images). For reasonable web pages, there are lots of simpler ways, but in
the end, the content is not safe.
But why do you want to prevent people from copying your text?


Indeed.

This is a security question. One should never try to implement
security without first assessing the threat it is supposed to counter.

What is the threat from people copying text - i.e., what losses can it
lead to. Whatever counter-measures once chooses, they should not cost
more than the potential loss.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #8

Randy Webb wrote:
askMe wrote:
In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar object) which is not able to be copied the same was as text.
That doesn't work either. If you want to prevent people from copying
content, don't put it on the web.


It works. It is why so many software companies have chosen that route.
Try to drag and copy a flash object or a pdf to see what I mean.


File>Save As. Hmmmmm


The question was how to prevent select, cut and paste and/or
right-clicking to save. Sure, you can save a whole web page, but the
parts that are not text will only be saved as objects (uneditable 9x
out of 10) which is how they were presented on the web.

But why do you want to prevent people from copying your text?


Lack of knowledge of the web, and how it works is the #1 answer to

that question, even if people fail to realize it.
Partially correct.
http://www.askblax.com


Site not responding.


You're obviously a very lucky person.
But, if your responses in Usenet are indicative of the responses on that site, its better *not* to ask blax.
You don't have to askblax if you don't want to. Nothing ventured,
nothing gained.
Read this groups FAQ before posting, it contains a ton of useful
information.
For what?

http://www.askblax.com
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup

weekly

Jul 23 '05 #9
If people copy your text, how is it a security question? Copying code
maybe? Scripting on the events? Please explain.

Thanks.

http://www.askblax.com

Jul 23 '05 #10
askMe wrote:
Randy Webb wrote:
askMe wrote:
In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar object)
which is not able to be copied the same was as text.


That doesn't work either. If you want to prevent people from copying
content, don't put it on the web.


It works. It is why so many software companies have chosen that route.

Nope - copy the image, feed it into your OCR and you get the text.
Jul 23 '05 #11
askMe wrote:
Randy Webb wrote:
askMe wrote:

In order to prevent people from copying content from your page, you
have to turn the text into a picture (or some other peculiar
object)
which is not able to be copied the same was as text.
That doesn't work either. If you want to prevent people from copying
content, don't put it on the web.

It works. It is why so many software companies have chosen that route.


Are you as anally retentive as you seem to be? Attempting to prevent the
copying of *anything* on the web is a futile attempt. Its the very basis
of the WWW to start with - *sharing* of information. But, you are
welcome to prove me wrong. Post a (working) URL to a page, and I will
copy/paste whatever is on it, and tell you how I did it. Even if it is
nothing more than opening Notepad and typing it myself. It is *not* safe
on the web.
Try to drag and copy a flash object or a pdf to see what I mean.
File>Save As. Hmmmmm

The question was how to prevent select, cut and paste and/or
right-clicking to save.


And the answer is simple - You can NOT stop it. But again, you are
welcome to attempt to prove me wrong.
Sure, you can save a whole web page, but the parts that are not text will
only be saved as objects (uneditable 9x out of 10) which is how they were
presented on the web.
Is your knowledge of anything else better than your knowledge of the web
and the way it works? I hope so.
But why do you want to prevent people from copying your text?


Lack of knowledge of the web, and how it works is the #1 answer to that
question, even if people fail to realize it.

Partially correct.


No, totally correct.
http://www.askblax.com
Site not responding.

You're obviously a very lucky person.


Irony is that you admit it. Odd.
But, if your responses in Usenet are indicative of the responses on that
site, its better *not* to ask blax.

You don't have to askblax if you don't want to. Nothing ventured,
nothing gained.


I might try later, it could provide me with some entertainment.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #12
If you display your content in a Flash movie, they can't copy it.

Jul 23 '05 #13
enrique wrote:
If you display your content in a Flash movie, they
can't copy it.


Unless they run the Flash movie though an example of the software
designed to turn a SWF back into an FLA, and then use Flash to extract
the original text. (or any of a number of alternative approaches that a
little google searching will quickly turn up)

Richard.
Jul 23 '05 #14
In article <11*********************@g49g2000cwa.googlegroups. com>,
en************@gmail.com enlightened us with...
If you display your content in a Flash movie, they can't copy it.

LOL
That's a good one.

There's a big difference between "can't" and "most likely won't bother to".
It's a bit of a pain, but it certainly IS possible.
I have various means of getting what I want. Including an OCR program to
extract text from graphics so I don't have to re-type it all. Exports it all
nice into Word for me. Neat, eh? ;)

--
--
~kaeli~
Cthulhu saves our souls and redeems them for valuable
coupons later.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #15
enrique wrote:
If you display your content in a Flash movie, they can't copy it.


Thanks, I needed that laugh. Flash decompiler's are a dime-a-dozen when
you know where to look on the web.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Jul 23 '05 #16

Mark Preston wrote:
askMe wrote:
Randy Webb wrote:
askMe wrote:

In order to prevent people from copying content from your page, youhave to turn the text into a picture (or some other peculiar object)which is not able to be copied the same was as text.

That doesn't work either. If you want to prevent people from copyingcontent, don't put it on the web.


It works. It is why so many software companies have chosen that route.

Nope - copy the image, feed it into your OCR and you get the text.


True. But again, you cannot select, cut and paste. Creating the
object deters copying. Most people will not bother to run stuff
through OCR, reduce it to bytes, or deal with object manipulation.

All things are possible, yes. Software companies that use objects as a
deterrent have also *allowed* the decompilers (oh I forgot the tech
term (but, you know what I mean, right?)), for exposure to their
product and to enhance what their tech writers *forgot* to explain that
might help you complete your task. Is conversion to byte code,
modifying the extension of the output, or other manipulation of objects
that were not designed to be *easily* copied, cut and pasted posing a
security problem? Sandboxes getting any better, iow?

Jul 23 '05 #17
>> Unless they run the Flash movie though an example of the software
designed to turn a SWF back into an FLA, and then use Flash to extract
the original text. (or any of a number of alternative approaches that a

little google searching will quickly turn up)

Richard.
<<

I thought even flash had a setting to prevent extraction/copying of swf
files.

Jul 23 '05 #18
>> There's a big difference between "can't" and "most likely won't
bother to". <<

Exactly! There is freeware abound for converting just about anything
to anything else.
http://www.askblax.com

Jul 23 '05 #19
askMe wrote:
Mark Preston wrote:
Nope - copy the image, feed it into your OCR and you get the text.


True. But again, you cannot select, cut and paste.


Can once you have the text. The point is to show that anything you
*send* on the 'net can be *received* and once you have received it you
can do what they hell yu like with it - if it is worth your time.
Jul 23 '05 #20
askMe wrote:
In order to prevent people from copying content from your page, you
have to turn the text into a picture
Rubbish. OCR exists, and using images only would not only increase
loading time and bandwidth usage but also reduce usability in other
ways (think e.g. of disabled images for exactly that reason).
(or some other peculiar object)
Which would be? Anything that can be downloaded can be stored.
which is not able to be copied the same was as text. Try to drag and
copy a flash object or a pdf to see what I mean.


Try to make a screenshot of it or just download the .swf file ...
PointedEars
Jul 23 '05 #21

Check out the copy protect solutions available a
http://www.artistscope.com

Security solutions available as inserts to ASP, PHP and other scripte
portals can be found at http://www.copysafe.ne

--
Kend
-----------------------------------------------------------------------
Kendo's Profile: http://www.highdots.com/forums/member.php?userid=8
View this thread: http://www.highdots.com/forums/showthread.php?t=57779

Jul 23 '05 #22
Kendo wrote:
Check out the copy protect solutions available at
http://www.artistscope.com

<snip>

"Could not connect to remote server: http://www.artistscope.com", which
is what everyone has been saying; if you don't want it copied don't put
it on the web.

Richard.
Jul 23 '05 #23

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robert Tarantino | last post by:
Hello, I am trying to find a way to create a scheduled task or service that will copy my local profile folders under "Documents and settings" to a network drive. This would allow me to restore...
2
by: Jon Haakon | last post by:
Hi, I'm developing a websolution using ASP and DHTML technology that's running on a MS IIS webserver. My solution is frame based with a toolbar on top, a hidden frame for scripts in the...
3
by: Tjerk Wolterink | last post by:
Hello i have xml code like this: <page:page xmlns:page="namespacefor page"> <page:section> <page:header> <b>Hello</b>There </page:header> <page:content> --- HTML CODE like: <i>Y</i>es i...
4
by: Els | last post by:
Hi, I would like an opinion on the following: I have a page which is made up of background-images with transparent linked images in front of it, which on hover show text in CSS popups. Due to...
102
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
1
by: iMedia User | last post by:
I have a site where I want to use the Web form validators in two separate forms on a single page. One form allows existing users to log in while the second one allows new users to register. The...
42
by: smerf | last post by:
Using javascript, is there a way to trap an external page inside a frame? I've seen scripts to break out of frames, but nothing to keep a page trapped in a frame.
6
by: Mark C | last post by:
how do you prevent users from copying ctrl-c content from your textboxes. I know how to do this with IE which is <body onSelectStart="return false;"> but does not work in Mozilla Thanks Mark...
1
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
I would like to gray out or disable all of page content while a pannel is visible and active. I know there is a way to do this. psudo code 1. click "Join" 2. display panel and disable all other...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.